 Replication: Data-creation file
*Dominant Personality and Politically Inexperienced Presidents Challenge Term Limits 
* Journal of Politics 
* Ignacio Arana Araya (Carnegie Mellon University)
* Environment: Windows 10, Stata 16
* 1/30/2022


* Data on presidents and term limits 
use Presidents.dta, clear

* Data from Mainwaring and Perez-Linan. 2013.
joinby pcode year using MainwaringPerez-Linan.dta, unm(master)
drop _merge
 
* Data from Marshall, Jaggers, and Gurr. 2014. 
joinby pcode year using MarshallJaggersGurr.dta, unm(master)
drop _merge

* Data from Coppedge et al. 2017. 
joinby pcode year using Coppedge.dta, unm(master)
 drop _merge

* Data from World Bank. 2018. 
joinby pcode year using WorldBank.dta, unm(master)
 drop _merge
  
* Data from Perez-Linan, Schmidt, and Vairo. 2019.  
joinby pcode year using Perez-LinanSchmidtVairo.dta, unm(master)
 drop _merge
 
*Creating Log variables
generate agepartylog=log(ageparty) 
generate years_inpoliticslog=log(years_inpolitics) 
 
 ***LABELS: 
label variable agepartylog "Party Age (log)"
label variable ageparty "Party Age"
label variable gpgdp "GDP per Capita"
label variable stronglegpower "Leg. Powers"
label variable strongnon_legpower "Non-Leg. Powers"
label variable amnvariable "Amendment"
label variable g_hapl "Congress"
label variable yearsinoffice "Time in Office" 
label variable yearsinoffice2 "Time in Office2"
label variable yearsinoffice3 "Time in Office3"
label variable expected_years_left "Expected Years Left"
label variable imr "IMR" 
label variable political_inexperience "Inexperience" 
label variable avgdom "Dominance"
label variable avgdomperf "Dominance"
label variable enphapl "Number of Parties"
label variable noreelection "No Reelection"
label variable amnvariable "Amendment"
label variable polityivpolity2 "Regime"
label variable v2juhcind "Higher Courts"
label variable years_inpolitics "Inexperience"
label variable political_inexperience_dummy "Inexperience"
label variable indexpolexperience "Inexperience"
label variable mp_h "New Variable"
label variable agepres "New Variable"
label variable education "New Variable"
label variable political_ideology1 "New Variable"
label variable avgextraversion "New Variable"
label variable populist "New Variable"
label variable expected_years_left "New Variable"
label variable enpoapl "New Variable"
label variable v2xlg_legcon "New Variable"
label variable v2x_jucon "New Variable"
label variable oilmin "New Variable"
revrs years_inpolitics
label variable revyears_inpolitics "Inexperience"
 
 

save "Presidents&TermLimits.dta", replace

